/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unipiloto.edu.co.demo.security;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.Singleton;

/**
 *
 * @author David
 */
@Singleton
public class UserIdentity {

    private static final Logger logger = Logger.getLogger("unipiloto.edu.co");
    private String username;
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void createSession(String username, String password) {
        this.username = username;
        this.password = password;
        logger.log(Level.INFO, "Identity Simulador -> {0}", this.getUsername());
    }
}
